# -*- coding: utf-8 -*-
# @Time        :2024/10/11 下午5:10
# @Author      :文刀水寿
# @File        : 04_构造方法.py
"""
 @Description :演示类的构造方法
"""


# 构造方法名称 __init__


class Student:

    def __init__(self, name, age, tel):
        self.name = name
        self.age = age
        self.tel = tel
        print("我执行了！！！")


stu = Student("刘禾钰", 18, "18700222185")
print(stu.name)
print(stu.age)
print(stu.tel)
